﻿using DFGK_WMS.Model.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DFGK_WMS.IRepository
{
    public interface IActionRepository:IBaseRepository<Action>
    {
        /// <summary>
        /// 添加操作按钮
        /// </summary>
        /// <param name="m"></param>
        /// <returns></returns>
        bool AddAction(TAction m);

        /// <summary>
        /// 获取按钮列表
        /// </summary>
        /// <param name="aname"></param>
        /// <param name="status"></param>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <param name="totalCount"></param>
        /// <returns></returns>
        List<TAction> GetActionList(string aname,int status,int pageIndex,int pageSize,out int totalCount);

        /// <summary>
        /// 删除按钮
        /// </summary>
        /// <param name="aid"></param>
        /// <returns></returns>
        bool DelAction(int aid);

        /// <summary>
        /// 根据主键获取信息
        /// </summary>
        /// <param name="aid"></param>
        /// <returns></returns>
        TAction ActionById(int aid);

        /// <summary>
        /// 修改按钮
        /// </summary>
        /// <param name="m"></param>
        /// <returns></returns>
        bool UpdAction(TAction m);
    }
}
